//
//  UIImage+Function.h
//  KKCategory
//
//  Created by liaozhenming on 16/5/17.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Function)

//  颜色转变成image
+ (instancetype)kk_imageWithColor:(UIColor*)color;

//  截图
+ (instancetype)kk_screenImageWithLayer:(CALayer*)layer;

//  缩放image
- (UIImage*)kk_scaleImageWithZoom:(float)zoom;

//  比例裁剪
- (UIImage*)kk_cutOutWithZoom:(float)zoom;

//  范围裁剪
- (UIImage*)kk_cutOutWithFrame:(CGRect)frame;

//  模糊效果
- (UIImage*)kk_blurImageWithBlurValue:(float)blur;

//  根据切割点来裁剪图片
- (UIImage*)kk_cutOutWithPoints:(NSArray*)points;

@end
